import time
from selenium import webdriver
from selenium.webdriver.common.by import By
browser = webdriver.Chrome()
browser.maximize_window()
browser.get('https://new.qq.com/search')
time.sleep(1)
browser.find_element(By.CSS_SELECTOR, '#root > div > div.wrap > div.left-wrap.LEFT > div > div > input').send_keys('人工智能')
browser.find_element(By.CSS_SELECTOR, '#root > div > div.wrap > div.left-wrap.LEFT > div > div > div').click()
time.sleep(3)
browser.find_element(By.CSS_SELECTOR, '#root > div > div.wrap > div.left-wrap.LEFT > div:nth-child(2) > div > ul > li:nth-child(12) > a').click()
